﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel.Compiler;
using System.ComponentModel.Design;
using System.Workflow.ComponentModel.Design;

namespace OpenComposite.Repository.Tracking
{
	internal sealed class TrackingWorkflowDesignSurface : DesignSurface
	{
		#region Initialization

		internal TrackingWorkflowDesignSurface(IMemberCreationService memberCreationService)
		{
			this.ServiceContainer.AddService(typeof(ITypeProvider), new TypeProvider(this.ServiceContainer), true);
			this.ServiceContainer.AddService(typeof(IMemberCreationService), memberCreationService);
			this.ServiceContainer.AddService(typeof(IMenuCommandService), new TrackingMenuCommandService(this.ServiceContainer));
		}

		#endregion Initialization
	}
}
